package com.dragon.repository.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 待办提醒
 * </p>
 *
 * @author sy
 * @since 2023-06-27
 */
@Getter
@Setter
@TableName("dragon_do_reminder")
public class DoReminder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 提醒类型：
     */
    private Integer type;

    /**
     * 关联id
     */
    private Integer corrlelationId;

    /**
     * 访问地址
     */
    private String urlAddress;

    /**
     * 流程类型
     */
    private Integer operationType;

    /**
     * 流程名称
     */
    @TableField(exist = false)
    private String operationName;

    /**
     * 发送人id
     */
    private Integer fromId;

    /**
     * 提醒人id
     */
    private Integer adminId;

    /**
     * 0未读，1已读
     */
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 下一审核人id
     */
    @TableField(exist = false)
    private Integer nextAdminId;


    /**
     * 所有审核人id:会签和并签才会出现
     */
    @TableField(exist = false)
    private List<Integer> adminIds;

    /**
     * 发起人名称
     */
    @TableField(exist = false)
    private String userName;


}
